<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Flex布局</title>
    <style>
      .father {
        width: 100%;
        height: 60vw;
        background-color: pink;
        /* 需要给父盒子，开启弹性布局 */
        /* 等同于 弄了个 flex 的容器 */
        display: flex;
        /* 默认主轴方向 是横向 */
        /* justify-content: space-between; */
        justify-content: space-evenly;

        /* 统一设置交叉轴 */
        /* align-items: flex-end; */
        align-items: center;
      }

      .two {
        /* flex:1 将剩余尺寸分为 1 份，他占 1 份 */
        flex: 1;
      }
      .three {
        align-self: flex-start;
        flex: 1;
      }
      .one {
        align-self: flex-end;
        flex: 2;
      }

      .father div {
        width: 20vw;
        height: 20vw;
        background-color: orange;
        border: 1px black solid;
        box-sizing: border-box;
      }
    </style>
  </head>
  <body>
    <div class="father">
      <div class="one">1</div>
      <div class="two">2</div>
      <div class="three">3</div>
    </div>
  </body>
</html>